package com.tanhua.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(value = "recommend_user")
public class RecommendUser implements Serializable {

    private ObjectId id;

    private Long userId;//佳人id
    private Long toUserId;//用户id
    @Field("score")
    private Double score;
    private String date;


}
